/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.gamecenter.sdk.login.plugin.login.view;

import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import com.qihoo.gamecenter.sdk.login.plugin.h.e;

public class b {
    public static final Uri a = Uri.parse("content://com.qihoo.wanyou.provider.external/map");
    private static int b = -2;

    public static String a(Context paramContext) {
        if (!(b(paramContext)))
            return null;
        String str = null;
        try {
            Cursor localCursor = paramContext.getContentResolver().query(a, null, "key=?",
                    new String[] { "login_service_curuser" }, null);
            if ((localCursor != null) && (localCursor.moveToFirst())) {
                int i = localCursor.getColumnIndex("value");
                str = localCursor.getString(i);
            }
            if (localCursor != null)
                localCursor.close();
        } catch (Exception localException) {
            e.b("Plugin.ISyncUserInfo", "getUserInfo error is " + localException.getLocalizedMessage());
        }
        return str;
    }

    public static void a(Context paramContext, String paramString) {
        if (!(b(paramContext)))
            return;
        try {
            ContentValues localContentValues = new ContentValues();
            localContentValues.put("key", "login_service_curuser");
            localContentValues.put("value", paramString);
            paramContext.getContentResolver().update(a, localContentValues, "key=?",
                    new String[] { "login_service_curuser" });
        } catch (Exception localException) {
            e.b("Plugin.ISyncUserInfo", "setUserInfo error is " + localException.getLocalizedMessage());
        }
    }

    public static boolean b(Context paramContext) {
        return c(paramContext);
    }

    private static boolean c(Context paramContext) {
        return false;
    }
}